package com.ibeeking.found.upms.b.rest.service;

import com.ibeeking.found.upms.api.common.param.ShopAdminInitParam;
import com.ibeeking.found.upms.service.common.dos.ShopUserDO;
import com.ibeeking.found.upms.service.common.query.ShopUserPageQuery;
import com.ibeeking.found.upms.service.common.vo.ShopUserPageVO;
import com.ibeeking.found.upms.service.common.vo.ShopUserVO;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import java.util.List;

/**
 * @ClassName IShopUserService
 * @Description
 * @Author ibeeking
 * @Date 2021-04-15 9:00
 **/
public interface IShopUserService {

    /**
     * 店铺员工分页查询
     *
     * @param query
     * @return
     */
    Page<ShopUserPageVO> pageList(Integer tenantId, ShopUserPageQuery query);

    /**
     * 初始化店铺
     *
     * @param param
     * @return
     */
    Boolean initShopAdmin(Integer tenantId, ShopAdminInitParam param);

    /**
     * 店铺员工查看
     *
     * @param id
     * @return
     */
    ShopUserVO view(Long id);

    List<ShopUserDO> queryByMobile(String mobile);
}
